package day_3.demo5;/*
 *@ 代阳敲的专属代码
 **/

public class Preson {
    private String name;
    private int age;
    public Preson() {
    }
    public Preson(String name, int age) {
        setAge(age);
        setName(name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public String say() {
        return "我是"+name+",今年"+age+"岁";
    }
}
